/**
 * 遍历获取组件的所有关联字段id列表
 * @param metaData
 * @returns {Array}
 */
export default function loadFieldList(metaData) {
    const fieldIds = [];
    const _f = (mD) => {
        if (mD.getIn(['field', 'id'])) {
            fieldIds.push(mD.getIn(['field', 'id']));
        }
        mD.get('childElements') && mD.get('childElements').map(md => md && _f(md));
    };
    metaData && _f(metaData);
    return fieldIds;
}